package cn.stalk.wf.event;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.DelegateTask;
import org.camunda.bpm.engine.delegate.ExecutionListener;
import org.camunda.bpm.engine.delegate.TaskListener;

import lombok.extern.slf4j.Slf4j;

/**
 * 测试用事件
 */
@Slf4j
public class TestListener implements TaskListener, ExecutionListener {

    @Override
    public void notify(DelegateTask delegateTask) {
        log.info("TestListener-task-----------------" + delegateTask.getEventName() + ">>" + delegateTask.getId());
    }

    @Override
    public void notify(DelegateExecution execution) throws Exception {
        log.info("TestListener-execution------------" + execution.getEventName() + ">>" + execution.getId());
    }

}
